package com.sv.jm.baselibrary.utils;

/**
 * Created by Administrator on 2017/5/23.
 */

public class FastClickCheck {
    static long lastClickTime = 0;

    /**
     * 2秒之内的点击视为误操作（即重复点击）
     *
     * @return
     */
    public static boolean isFaskClick() {
        long clickTime = System.currentTimeMillis();
        if (clickTime - lastClickTime >= 400) {
            lastClickTime = clickTime;
            return false;
        }
        return true;
    }
}
